import request from "../request";

// 文章列表
export const getArticleList = () => {
    return request({
        url: '/article/articleList',
        method: 'get'
    })
}

// 文章详情
export const getArticleDetail = (id) => {
    return request({
        url: '/article/articleDetail?id=' + id,
        method: 'get'
    })
}

// 新增
export const addArticle = (data) => {
    return request({
        url: '/article/add',
        method: 'post',
        data
    })
}